
/**
 * @author: guo
 * @date：2019-01-25
 */

package com.dtguai.web.api;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author guo
 * @date 2018年8月24日上午11:32:13
 */
@Controller
@RequestMapping()
public class Csrf {

    private final String csrf = "csrf---------------";

    private static Logger logger = Logger.getLogger(Csrf.class);

    @ResponseBody
    @GetMapping(value = "csrf", produces = "application/text;charset=UTF-8")
    public String csrf() {
        logger.info(csrf);
        return csrf;
    }

}
